package com.sobot.kb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.sobot.kb.dao.RptRobotMapper;
import com.sobot.kb.dto.RptRobotVo;
import com.sobot.kb.service.RptRobotService;

@Service
@Transactional(isolation=Isolation.DEFAULT,rollbackFor=Exception.class)
public class RptRobotServiceImpl implements RptRobotService {
	
	@Autowired
	private RptRobotMapper robotMapper;

	@Override
	public int save(RptRobotVo robotVo) {
		return robotMapper.save(robotVo);
	}

	@Override
	public RptRobotVo selectPageByCompanyId(String companyId) {
		return robotMapper.selectPageByCompanyId(companyId);
	}

	@Override
	public List<RptRobotVo> selectPage() {
		return robotMapper.selectPage();
	}

	@Override
	public Long selectCountByDocId(String docId) {
		return robotMapper.selectCountByDocId(docId);
	}

}
